import service from '@/utils/request';

export default null;

// 指标数据
export const getDataList = (params?: any) => {
  return service.request({
    url: '/patient/SysPatientOperationController/selectPatientOperationList',
    method: 'get',
    params,
  });
};
// 新增患者
export const add = (data?: any) => {
  return service.request({
    url: '/patient/SysPatientOperationController/insertPatientOperation',
    method: 'post',
    data,
  });
};
// 删除患者信息
export const remove = (id: any) => {
  return service.request({
    url: `/patient/SysPatientOperationController/deletePatientOperation`,
    method: 'post',
    params: {
      id,
    },
  });
};
// 批量删除患者信息
export const removes = (ids: any) => {
  return service.request({
    url: `/patient/SysPatientOperationController/deletePatientOperations`,
    method: 'post',
    params: {
      ids,
    },
  });
};

export const update = (data: any) => {
  return service.request({
    url: `/patient/SysPatientOperationController/updatePatientInspection`,
    method: 'POST',
    data,
  });
};

export const getDateList = (params?: any) => {
  return service.request({
    url: '/patient/SysPatientOperationController/queryPatientOperationDate',
    method: 'get',
    params,
  });
};
